From 8061d40e330d992531578633a2c75c07b9b6116c Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 12 May 2001 10:52:38 +0000 Subject: [PATCH] (malloc, realloc, free) [emacs]: Undefine before redefining, to avoid compiler warnings. --- src/regex.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/regex.c b/src/regex.c index b3d0658c7dc..9fe099c7125 100644 --- a/src/regex.c +++ b/src/regex.c @@ -124,8 +124,17 @@ # include "charset.h" # include "category.h" +# ifdef malloc +# undef malloc +# endif # define malloc xmalloc +# ifdef realloc +# undef realloc +# endif # define realloc xrealloc +# ifdef free +# undef free +# endif # define free xfree /* Converts the pointer to the char to BEG-based offset from the start. */ -- 2.30.2